package io.dy.advice;

import io.dy.dto.UserDto;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ModelAttribute;

/**
 * @author : dmj
 * @date: 2024/8/21 10:13 上午
 * @description:
 */
@ControllerAdvice
public class UserControllerAdvice {

    @ModelAttribute
    public UserDto userDto(){
        return new UserDto(1L,"dy");
    }
}
